package com.ter;

import java.awt.Dimension;
import java.awt.FlowLayout;

import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JTextField;

public class LabeledTextField extends JPanel{
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private JTextField a;
	
	public LabeledTextField(String LabelName) {
		JLabel label = new JLabel(LabelName);
		label.setPreferredSize(new Dimension(120, 20));
		a = new JTextField(5);
		setLayout(new FlowLayout(FlowLayout.LEFT,10,10));
		add(label);
		add(a);
	}
	
	public JTextField getTextField(){
		return a;
	}
}
